package com.jeesite.modules.kj.api.vo.responseVo.member;

import com.jeesite.modules.kj.api.vo.responseVo.base.BaseResponseVo;
import com.jeesite.modules.sys.entity.User;

public class MemberInfoResponseVo extends BaseResponseVo<User> {
    private String wxOpenid;
    private String status;
    private String userName;
    private String userType;
    private String email;
    private String mobile;
    private String avatarUrl;
    private String userCode;

    public MemberInfoResponseVo() {
    }

    public MemberInfoResponseVo(User entity){
        super();
        this.setEntity(entity);
    }

    @Override
    public void setEntity(User entity) {
        this.wxOpenid = entity.getWxOpenid();
        this.status = entity.getStatus();
        this.avatarUrl = entity.getAvatarUrl();
        this.userName = entity.getUserName();
        this.email = entity.getEmail();
        this.mobile = entity.getMobile();
        this.userType = entity.getUserType();
        this.userCode = entity.getExtend().getExtendS1();
    }

    public String getWxOpenid() {
        return wxOpenid;
    }

    public void setWxOpenid(String wxOpenid) {
        this.wxOpenid = wxOpenid;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }
}

